package com.hjf.javabean;

public class Student {
    //1.必须私有成员变量，并且为每个成员提供get和set方法。
    private String name;
    private double score;

    // 必须为每个类提供一个无参的构造器。（可以不写，就默认使用自带的无参构造器）

    public Student(String name, double score) {
        this.name = name;
        this.score = score;
    }

    public Student() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }
}
